package com.three.service.impl;

import com.three.entity.Keycap;
import com.three.mapper.KeycapMapper;
import com.three.service.KeyCapService;
import com.three.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KeyCapServiceImpl implements KeyCapService {
    @Autowired
    private KeycapMapper keycapMapper;
    @Override
    public R list() {
        List<Keycap> all = keycapMapper.list();
        return R.ok(all);
    }
}
